use std::fmt;

#[derive(Debug)]
pub struct Error
{
    message:String
}

impl Error {
    pub fn new(message:String)->Self{
        Error{
            message:message
        }
    }
}

impl fmt::Display for Error {
    fn fmt(&self,f:&mut fmt::Formatter<'_>)-> fmt::Result{
        write!(f,"Message:{}",&self.message)
    }
}
